/*
 * @Author: xiehangyun 
 * @Date: 2025-05-16 10:34:03 
 * @Last Modified by: xiehangyun
 * @Last Modified time: 2025-05-16 21:09:43
 */

import Api from "src/api/Api";

export interface CompanyInfo {
    name: string;
    logo: string;
    version: string;
    description: string;
    mission: string;
    vision: string;
    contact: {
        address: string;
        phone: string;
        email: string;
        website: string;
    };
}

// 关于我们接口
class AboutUsApi extends Api {

    constructor() {
        super()
    }

    // 获取公司信息
    getCompanyInfo(): Promise<{ data: CompanyInfo }> {
        return this._get('/api/company/info');
    }

    // 提交反馈
    submitFeedback(data: { content: string; contact?: string }): Promise<{ data: null }> {
        return this._post('/api/feedback', data);
    }
}

const aboutUsApi = new AboutUsApi();

export default aboutUsApi;